import request from "@/utils/http/axios";

class EmployeeApi {
    static getList(page, size){
        return request({
            url: "/employee/list",
            mehtod: "get",
            params: {page, size}
        })
    }

    static saveOrUpdate(data){
        return request({
            url: "/employee/addOrUpdate",
            method: "post",
            data: data
        })
    }

    static getJobs(){
        return request({
            url: "/job/listAll",
            mehtod: "get"
        })
    }
}

export default EmployeeApi;